<?php

namespace app\admin\controller;
use think\Controller;

class Base extends Controller{

    public function __construct(){
        parent::__construct();
        $this->get_conf();
    }

    /**
     * 获取系统信息
     */

    public function get_conf(){
        if(!session('conf.id')){
            $Config = M('configure');
            $conf = $Config->where('id=1')->find();
            session('conf',$conf);
        }
    }
}